package com.cyl.manager.act.domain.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * VIP兑换码表对象 fh_vip_exchange_code
 *
 * @author zcc
 */
@ApiModel(description="VIP兑换码表对象")
@Data
@TableName("fh_vip_exchange_code")
public class FhVipExchangeCode {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("兑换码ID")
    private Long id;

    @ApiModelProperty("兑换码")
    @Excel(name = "兑换码")
    private String code;

    @ApiModelProperty("VIP配置ID")
    private Long rechargeDataId;

    @ApiModelProperty("VIP类型")
    @Excel(name = "VIP类型")
    private String vipType;

    @ApiModelProperty("VIP天数")
    @Excel(name = "VIP天数")
    private Integer vipDays;

    @ApiModelProperty("原价")
    @Excel(name = "原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("折扣价")
    @Excel(name = "折扣价")
    private BigDecimal discountPrice;

    @ApiModelProperty("状态")
    @Excel(name = "状态")
    private Integer status;

    @ApiModelProperty("兑换用户ID")
    @Excel(name = "兑换用户ID")
    private Long usedUserId;

    @ApiModelProperty("使用时间")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime usedTime;

    @ApiModelProperty("过期时间")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireTime;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String remark;

}
